package program;

import reference.codes.CodeView;
import controller.environment.GroundManager;
import view.completeView.CompleteFrame;

public class Program {
	public static final int TYPE_OF_VIEW = CodeView.SIMPLE_NORMAL_VIEW;
	private ExperimentManager m_experimentManager;
	
	public Program(){
		m_experimentManager = new ExperimentManager();
		createView();
	}
	
	/**
	 * Form of switch to avoid an error of comparison between 2 same values
	 */
	private void createView(){
		switch(Program.TYPE_OF_VIEW){
		case CodeView.NO_VIEW:
			GroundManager.getInstance(); // Line to initiate the groundManager (in case of no frame)
			break;
		case CodeView.SIMPLE_NORMAL_VIEW:
			new CompleteFrame(m_experimentManager);
			break;
	}
	}
}
